import random
s='abcdefghijklmnopqrstuvwxyz'
s1=[random.choice(s)+random.choice(s) for i in range(0,100)]
s1_set=set(s1)
s1_dic={i:s1.count(i) for i in s1_set}
print(sorted(s1_dic.items(),key=lambda item:item[0],reverse=True))


# 没有按出现次数排序，你可以看看哪里出了错
